home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
CUJ9209.ARJ
/
1009020B
< prev
next >
Wrap
Text File
|
1992-07-08
|
252b
|
18 lines
// LISTING 2
#include "jmpstack.h"
extern void terminate();
jmp_buf& JmpStack::operator++()
{
if(++current == SIZE) terminate();
return stack[current];
}
jmp_buf& JmpStack::operator--()
{
if(current < 0) terminate();
return stack[current--];
}